package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.StrategyCommentReply;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 攻略点评的评论回复接口
 */
public interface IStrategyCommentReplyService {

    /**
     * 分页查询点评
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);

    /**
     * 更改评论的发布状态
     * @param id
     * @param state
     */
    void changeReplyState(Long id, Integer state);


    /**
     * 保存点评的评论
     * @param entity
     */
    void saveReply(StrategyCommentReply entity);

    /**
     * 根据点评id查询评论数
     * @param strategyCommentId
     * @return
     */
    int getCountByStrategyCommentId(Long strategyCommentId);
}
